<div class="row">
    <div class="col-xs-12">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">老师列表</h3>

                <div class="box-tools">
                    {{--<div class="input-group input-group-sm" style="width: 300px;">--}}
                        {{--<input type="text" name="table_search" class="form-control pull-right" placeholder="Search">--}}

                        {{--<div class="input-group-btn">--}}
                            {{--<button type="submit" class="btn btn-default" style="margin-right: 10px"><i class="fa fa-search"></i></button>--}}
                            {{----}}
                        {{--</div>--}}
                    {{--</div>--}}
                    <button class="btn btn-success btn-sm" data-url="{{ url('/admin/teacher/create') }}" onclick="jumpfun(this)">添加</button>
                </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
                <table class="table table-hover">
                    <tr>
                        <th>ID</th>
                        <th>姓名</th>
                        <th>昵称</th>
                        <th>电话</th>
                        <th>邮箱</th>
                        <th>qq</th>
                        <th>住址</th>
                        <th>老师组</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    @foreach($teachers as $teacher)
                    <tr>
                        <td>{{ $teacher->teacher_id }}</td>
                        <td>{{ $teacher->teacher_name }}</td>
                        <td>{{ $teacher->nice_name }}</td>
                        <td>{{ $teacher->mobile }}</td>
                        <td>{{ $teacher->email }}</td>
                        <td>{{ $teacher->qq }}</td>
                        <td>{{ $teacher->address }}</td>
                        <td>{{ $teacher->group_name }}</td>
                        <td>{!! $teacher->status?"<span class='label label-success'>正常</span>":"<span class='label label-danger'>离职</span>" !!}</td>
                        <td>
                            <a style="margin:3px;" href="javascript:void(0)" data-url="{{ url('/admin/teacher', $teacher->teacher_id.'/edit') }}" onclick="jumpfun(this)" class="X-Small btn-xs text-success "><i class="fa fa-edit"></i> 编辑</a>
                            <a style="margin:3px;" href="javascript:void(0)" data-url="{{ url('/admin/teacher', $teacher->teacher_id) }}" onclick="changefun(this)" class="X-Small btn-xs text-danger ">{!! $teacher->status?'<i class="fa fa-remove"></i> 离职':'<i class="fa fa-check-circle"></i> 恢复' !!}</a>
                        </td>
                    </tr>
                    @endforeach
                </table>
            </div>
            <div class="box-footer clearfix">
                <ul class="pagination pagination-sm no-margin pull-right">
                    {!! $teachers->links('vendor.pagination.pages') !!}
                </ul>
            </div>
            <!-- /.box-body -->
        </div>
        <!-- /.box -->
    </div>
</div>